Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collection copy operation in dataset list #18724

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

guerler
Copy link
Contributor

@guerler guerler commented Aug 20, 2024

Fixes #18658.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@guerler guerler added this to the 24.2 milestone Aug 20, 2024
@guerler guerler marked this pull request as ready for review August 22, 2024 06:17
@@ -100,16 +100,13 @@ async function load(concat = false) {
}
}

async function onCopyDataset(item: HDASummary) {
async function onCopyContent(item: HDASummary) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type annotation here isn't correct if you're calling this function onCopyContent

export async function copyContent(
contentId: CopyContentBodyType["content"],
historyId: CopyContentParamsType["path"]["history_id"],
type: CopyContentParamsType["path"]["type"] = "dataset"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ambigous, I would pass in src (at least ldda is another valid dataset type) and then figure out which type it is, or pass both if you want to support dce's as well.

@ahmedhamidawan
Copy link
Member

ahmedhamidawan commented Aug 29, 2024

Some changes here especially in HistoryPanel and MultipleViewList might relate to/conflict with changes in #18699 with the addition of the historyDragDrop composable and the removal of onDrop from both those files.

@jdavcs jdavcs modified the milestones: 24.2, 25.0 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants